# coding=utf-8

from fastapi import APIRouter

from routers.task import task_api

router = APIRouter()


router.add_api_route(
    '/originality',
    task_api.create_originality_check_task,
    methods=['post'],
    summary='文章原创度检测',
    description="提交文章，获取任务id"
)


router.add_api_route(
    '/originality',
    task_api.get_originality_check_task,
    methods=['get'],
    summary='获取文章原创度检测结果',
    description="通过任务id，获取文章原创度检测结果"
)
